home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / DevTools / eText5 / Source / Kludges.subproj / FontWell.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-30  |  1.9 KB  |  53 lines

  1. /* This file has been modified by Rohit Khare, 10/31/94 */
  2. /*
  3.  * Copyright (c) 1992 Athena Design, Inc. and David Pollak  
  4.  *
  5.  *            ALL RIGHTS RESERVED       
  6.  * 
  7.  *
  8.  * Redistribution and use in source and binary forms, with or without
  9.  * modification, are permitted provided that the following conditions
  10.  * are met:
  11.  * 1. Redistributions of source code must retain the above copyright
  12.  *    notice, this list of conditions and the following disclaimer.
  13.  * 2. Redistributions in binary form must reproduce the above copyright
  14.  *    notice, this list of conditions and the following disclaimer in the
  15.  *    documentation and/or other materials provided with the distribution.
  16.  * 3. Neither the name of the company (Athena Design) nor the names of its 
  17.  *    employees may be used to endorse or promote products derived from this 
  18.  *    software without specific prior written permission.
  19.  *
  20.  * THIS SOFTWARE IS PROVIDED BY ATHENA DESIGN ``AS IS'' AND
  21.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23.  * ARE DISCLAIMED.  IN NO EVENT SHALL ATHENA DESIGN BE LIABLE
  24.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  25.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  26.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  29.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30.  * SUCH DAMAGE.
  31.  */
  32.  
  33.  
  34. #import <appkit/Button.h>
  35.  
  36. @interface FontWell:Button
  37. {
  38.     id    theFont;
  39.     id *fontObj;
  40.     char **lastPreview;
  41.     NXAtom theStr;
  42. }
  43.  
  44. - proposedFont;
  45. - acceptFont:font atPoint:(NXPoint *)p;
  46. - setFont:tmp;
  47. - font;
  48. - mouseDown:(NXEvent *)ev;
  49. - setFontObj:(id *)fo;
  50. - setLastPreview:(char **)lp;
  51. - setStr:(NXAtom)newStr;
  52. @end
  53.